package com.chen.state;

// 模拟倒计时
public class TestSleep1{

    public static void main(String[] args) throws InterruptedException {
        int downNum = 10;

        do {
            System.out.println(downNum--);
            Thread.sleep(1000);
        } while (downNum > 0);
    }

}
